﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CFSystem.JXC.Model;
using CFSystem.JXC.IDAL;
using CFSystem.JXC.DALFactory;
using CFSystem.JXC.AccessDAL;

namespace CFSystem.JXC.BLL
{
    /// <summary>
    /// 库存异动设置
    /// </summary>
   public  class InvTransInfo: ITransaction
    {
        private static readonly ITransaction  dal = DALFactory.DataAccess.CreateInvTrans();

        public InvTransInfo()
        { }

        #region ITransaction Members

        public IList<InvTransactionData> GetInvTransHistoryInfo()
        {
            return dal.GetInvTransHistoryInfo();
        }

        public InvTransactionData GetInvTransRecord(int InvTransID)
        {
            return dal.GetInvTransRecord(InvTransID);
        }

        public void InsertInvTransRecord(InvTransactionData InvTransInfo)
        {
            dal.InsertInvTransRecord(InvTransInfo);
        }

        public void DelInvTransRecordByID(int InTransID)
        {
            dal.DelInvTransRecordByID(InTransID);
        }

        #endregion
    }
}
